﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Download" Object="Download" InnerID="Request.QueryString['DownloadID']" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>地址列表</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="../../../S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "download_url_list";
var _lang = "<%=PageLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _downloadInnerID = "<%=Request.QueryString['DownloadID']%>";
var _downloadID = "<%=Download[ID]%>";
var _names = null;
var _urls = null;
var _counter = 0;
var _categoryID,_extention;
var _isLocked = <%=Convert.ToString(User["IsLocked"]).ToLower()%>;
var _lang_locked = "你被锁定，不能操作！";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_confirm_delete = "要删除此项吗？";
var _lang_must_be_number = "开始，结束和通配符都必须是数字！";
var _lang_from_a_to_z = "开始字符必须在a-z或者A-Z范围！";
var _lang_to_a_to_z = "结束字符必须在a-z或者A-Z范围！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame_flipCHS.gif" alt="关闭侧栏导航" /></div>
	<div class="Title"><a href="../../../IlgharCMS.DownModule/download/list.aspx">下载列表</a> → <%=Download[Name]%></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../../../IlgharCMS.DownModule/download/edit.aspx?ID=<%=Request.QueryString["DownloadID"]%>">编辑</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">地址列表</li>
		<li class="Right Selected"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<div class="ToolBar">
		<form>
			<select name="CategoryID" class="<%=PageLang%>Font">
				<option>所有类别</option>
				<option value="">未指定</option>
				<ali:Tree ID="UrlCategory" Object="UrlCategory">
					<ali:Control>
						<ali:Space>&nbsp;&nbsp;</ali:Space>
						<ali:Line>│</ali:Line>
						<ali:TopOpen>┌</ali:TopOpen>
						<ali:Top>┌</ali:Top>
						<ali:MiddleOpen>├</ali:MiddleOpen>
						<ali:Middle>├</ali:Middle>
						<ali:BottomOpen>└</ali:BottomOpen>
						<ali:Bottom>└</ali:Bottom>
					</ali:Control>
					<ali:Record>
						<option value="<%=ID%>"><%=Control%><%=Name%></option>
						<%=ChildRecords%>
					</ali:Record>
				</ali:Tree>
			</select>
			名称：<input name="UrlName" maxlength="50" title="名称" class="<%=PageLang%>Font" autocomplete="off" />
			<select name="Type"><option value="">单个地址</option><option value="0">批量（数字）</option><option value="1">批量（字符）</option></select>
			<span id="Batch" style="display:none">
			从：<input name="From" value="1" size="3" maxlength="3" class="Text CHSFont" />
			到：<input name="To" value="2" size="3" maxlength="3" class="Text CHSFont" />
			<span id="WildcardSpan">通配符长度：<input name="Wildcard" value="2" size="1" maxlength="1" class="Text CHSFont" /></span>
			扩展名：<input name="Extention" size="5" maxlength="50" title="扩展名" autocomplete="off" class="Text CHSFont" />
			</span>
			<br />
			地址：<input name="UrlTemplate" size="50" class="Text CHSFont" />
			<input type="submit" value="添加" />
		</form>
	</div>
	<div id="List">
		<table border="0" cellpadding="4" cellspacing="1" class="ListTable">
			<thead>
				<tr>
					<th width="60">名称</th>
					<th>地址</th>
					<th width="40">下载</th>
					<th width="40">错误</th>
					<th width="40">修改</th>
					<th width="40">删除</th>
				</tr>
			</thead>
			<tbody>
				<ali:List Object="Download.Url" Condition="DownloadID=Download[ID]" Validate="True">
					<ali:Record>
						<tr>
							<form action="<%=InnerID%>">
								<td><input type="text" name="Name" value="<%=Name%>" maxlength="50" class="Text <%=PageLang%>Font" /></td>
								<td><input type="text" name="URL" value="<%=URL%>" size="50" maxlength="255" class="Text" /></td>
								<td><%=DownCount%></td>
								<td><%=Error%></td>
								<td><input type="image" src="<%=ImagePath%>modify.gif" /></td>
								<td><a href="">删除</a></td>
							</form>
						</tr>
					</ali:Record>
				</ali:List>
			</tbody>
		</table>
	</div>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<script type="text/javascript" src="<%=JsPath%>down.js"></script>
</body>
</html>